package taller.mockup;

public class ReceptorDeRodamientosServerProxy implements taller.mockup.ReceptorDeRodamientosServer {
  private String _endpoint = null;
  private taller.mockup.ReceptorDeRodamientosServer receptorDeRodamientosServer = null;
  
  public ReceptorDeRodamientosServerProxy() {
    _initReceptorDeRodamientosServerProxy();
  }
  
  public ReceptorDeRodamientosServerProxy(String endpoint) {
    _endpoint = endpoint;
    _initReceptorDeRodamientosServerProxy();
  }
  
  private void _initReceptorDeRodamientosServerProxy() {
    try {
      receptorDeRodamientosServer = (new taller.mockup.ReceptorDeRodamientosServerServiceLocator()).getReceptorDeRodamientosServerPort();
      if (receptorDeRodamientosServer != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)receptorDeRodamientosServer)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)receptorDeRodamientosServer)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (receptorDeRodamientosServer != null)
      ((javax.xml.rpc.Stub)receptorDeRodamientosServer)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public taller.mockup.ReceptorDeRodamientosServer getReceptorDeRodamientosServer() {
    if (receptorDeRodamientosServer == null)
      _initReceptorDeRodamientosServerProxy();
    return receptorDeRodamientosServer;
  }
  
  public void informarRodamiento(java.lang.String arg0) throws java.rmi.RemoteException{
    if (receptorDeRodamientosServer == null)
      _initReceptorDeRodamientosServerProxy();
    receptorDeRodamientosServer.informarRodamiento(arg0);
  }
  
  
}